/**
 * 
 *
 * 
 * 
 */
package com.east196.xfast.core.button;

import com.east196.xfast.aop.AopContext;
import com.east196.xfast.aop.MetaObjectIntercept;
import com.east196.xfast.model.RoleBtn;

public class ButtonIntercept extends MetaObjectIntercept {

	@Override
	public String deleteBefore(AopContext ac) throws Exception {
		int id = ac.record.getInt("id");

		// 删除菜单按钮关联权限
		RoleBtn.dao.deleteByBid(id);

		return null;
	}

}
